<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<script type="text/javascript">
window.onload=function(){
var Oli=document.getElementById("onee");
Oli.children[0].onmouseover=function(){
Oli.children[1].style.display='block';
};

};
</script>
<style type="text/css">

#seco{
top:18px;
left:115px;
}
</style>
<div class="header_bg">
			<div class="wrap">
				<div class="header">
					<div class="logo">
						<a href="${pageContext.request.contextPath }"><img src="${pageContext.request.contextPath }/img/logo.png" alt=""> </a>
					</div>
					<div class="pull-icon">
						<a id="pull"></a>
					</div>
					<div class="cssmenu">
						<ul>
							<li>
								<a href="${pageContext.request.contextPath }">首页</a>
							</li>
							<li>
								<a href="${pageContext.request.contextPath }/servlet/BooklistServlet">书籍</a>
							</li>
					   
						<c:if test="${user!=null }">
   							<li id="onee"><a id="haha">欢迎您：${user.username }</a>
   								<ul id="seco" style="width:80px;height:80px;display: none;">
   								<li><a href="${pageContext.request.contextPath }/servlet/BuyCarfoUI">我的购物车</a></li>
   								<li><a href="${pageContext.request.contextPath }/servlet/ChangepassfoUI">修改密码</a></li>
   								<li><a href="${pageContext.request.contextPath }/servlet/BuyList?id=${user.username }">历史订单</a></li>
   								</ul>
   							</li>
   							<li><a href="${pageContext.request.contextPath }/servlet/LogoutServlet">注销</a></li>
						</c:if>
						<c:if test="${user==null }">
							<li><a href="${pageContext.request.contextPath }/servlet/LoginfoUI">登陆</a></li>
							<li><a href="${pageContext.request.contextPath }/servlet/RegisterfoUI">注册</a></li>
						</c:if>
						
					
					<li class="last">
								<a href="${pageContext.request.contextPath }/servlet/ContactfoUI">联系我们</a>
							</li>
						</ul>
					</div>
					<!--清除浮动-->
					<div class="clear"></div>
				</div>
			</div>
		</div>


